import React, { Component } from 'react'
import { Button } from 'element-react';
import axios from 'axios'
export default class App extends Component {
    /*
        1.配置代理的两种方式
            1- 在package.json中配置 //"porxy":"http://localhost:3000" 不推荐,因为会默认请求本地的文件
    */
    getStudentData = async () => {
        let res = await axios.get(`http://localhost:3000/api1/ajax/moreClassicList?sortId=1&showType=3&limit=10&offset=30&optimus_uuid=A5518FF0AFEC11EAAB158D7AB0D05BBBD74C9789D9F649898982E65427DD479&optimus_risk_level=71&optimus_code=10`)
        console.log(res.data);
    }
    render() {
        return (
            <div>
                <Button type="primary" onClick={this.getStudentData}>主要按钮</Button>
            </div>
        )
    }
}
